#!/bin/bash
[% c("var/set_default_env") -%]
tar xvf [% project %]-[% c('version') %].tar.gz
mv [% project %]-[% c("version") %] [% project %]

[% IF c("var/namecoin") %]
  pushd [% project %]
  patch -p1 < $rootdir/namecoin.patch
  popd
[% END -%]

[% c('tar', {
        tar_src => [ project ],
        tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
    }) %]
